package com.linjuke.beginsum.biz.dal.ibatis;

import com.linjuke.beginsum.biz.ao.request.UserRequest;
import com.linjuke.beginsum.biz.dal.daointerface.UserInfoDAO;
import com.linjuke.beginsum.biz.dal.dataobject.UserInfoDO;

public class UserInfoDAOIbatis extends BaseIbatisDAO implements UserInfoDAO {

	@Override
	public void create(UserInfoDO userInfoDO) {
		this.getSqlMapClientTemplate().insert("UserInfoDAO.create", userInfoDO);
	}

	@Override
	public int updateLogin(UserRequest userRequest) {
		return this.getSqlMapClientTemplate().update("UserInfoDAO.updateLogin", userRequest);
	}

	@Override
	public int updatePublish(UserRequest userRequest) {
		return this.getSqlMapClientTemplate().update("UserInfoDAO.updatePublish", userRequest);
	}

	@Override
	public int updateCallPhone(UserRequest userRequest) {
		return this.getSqlMapClientTemplate().update("UserInfoDAO.updateCallPhone", userRequest);
	}

}
